<?php

namespace app\api\controller\User;

use think\Controller;
use think\Request;

class Record extends Controller
{
    public function __construct()
	{
		parent::__construct();

		$this->UserModel = model('User.User');
		
		$this->RecordModel = model('User.Record');
	}	
	
    public function index()
    {
		
		$userid = $this->request->param('userid');
        
		$RecordList = $this->RecordModel->where('userid' , $userid)->order('id','desc')->select();
		
		$this->success('查询成功',null,$RecordList);
		
    }
	
}
